# encoding: utf-8
<table>
	<tr>
		<td><a href="/auth/facebook" class="auth_provider"> <%= image_tag "sign_facebook.png" %></a></td> <% if session[:facebook_token].present? %> <td> <%= image_tag "padlock_open.png"%> </td>
		<% end %>
		</td>
		<td><a href="/auth/twitter" class="auth_provider"> <%= image_tag "sign_twitter.png"%></a></td>
		<% if session[:twitter_token].present? && session[:twitter_secret].present? %>
		<td> <%= image_tag "padlock_open.png"%> </td>
		<% end %>
		<td><a href="/auth/linkedin" class="auth_provider"> <%= image_tag "sign_linkedin.png"
%></a></td>
		<% if session[:linkedin_token].present? && session[:linkedin_secret].present? %>
		<td> <%= image_tag "padlock_open.png"%> </td>
		<% end %>
	</tr>
</table>
<!-- <%= button_to "Test", {:controller=>"user",:action => "test"}%> -->
<h1>Actividad</h1>
<div id="left_column">
	<div class="sidebar_box">
		<h2><span class="header">Información básica</span><span class="edit_link"><%= link_to "(Editar)", :action => "edit" %></span>
		<br clear="all" />
		</h2>
		<div class="sidebar_box_contents">
			<table>
				<tr>
					<td class="label">Usuario:</td>
					<td><%= @user.screen_name %></td>
				</tr>
				<tr>
					<td class="label">Email:</td>
					<td><%= @user.email %></td>
				</tr>
				<tr>
					<td class="label">Password:</td>
					<td>********</td>
				</tr>
			</table>
		</div>
	</div>
	<%= render :partial => 'avatar/sidebar_box' %>
	<div class="sidebar_box">
		<h2><span class="header">Especificaciónes</span><span class="edit_link"> <%= link_to "(Editar)", :controller => "spec", :action => "edit" %> </span>
		<br clear="all" />
		</h2>
		<div class="sidebar_box_contents">
			<table>
				<!--# Change for render fields in the spanish
				<%= render :partial    => "spec/field_row",
				:collection => Spec::ALL_FIELDS %> -->
				<tr>
					<td class="label">Nombre(s):</td>
					<td><%= h @user.spec["first_name"] %></td>
				</tr>
				<tr>
					<td class="label">Apellido(s):</td>
					<td><%= h @user.spec["last_name"] %></td>
				</tr>
				<tr>
					<td class="label">Ocupación:</td>
					<td><%= h @user.spec["occupation"] %></td>
				</tr>
				<tr>
					<td class="label">Genero:</td>
					<td><%= h @user.spec["gender"] %></td>
				</tr>
				<tr>
					<td class="label">Cumpleaños:</td>
					<td><%= h @user.spec["birthdate"] %></td>
				</tr>
				<tr>
					<td class="label">Ciudad:</td>
					<td><%= h @user.spec["city"] %></td>
				</tr>
				<tr>
					<td class="label">Estado:</td>
					<td><%= h @user.spec["state"] %></td>
				</tr>
				<tr>
					<td class="label">Código postal:</td>
					<td><%= h @user.spec["zip_code"] %></td>
				</tr>
			</table>
		</div>
	</div>
	<!--# Change for render fields in the spanish
	<%= render :partial => 'faq/sidebar_box', :collection => Faq::FAVORITES %>
	-->
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Habilidades</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["skillz"] %>
		</div>
	</div>
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Educación</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["schools"] %>
		</div>
	</div>
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Trabajos</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["companies"] %>
		</div>
	</div>
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Música</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["music"] %>
		</div>
	</div>
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Peliculas</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["movies"] %>
		</div>
	</div>
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Televisión</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["television"] %>
		</div>
	</div>
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Libros</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["books"] %>
		</div>
	</div>
	<div class="sidebar_box">
		<h2><span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span><span class="header">Revistas</span>
		<br clear="all" />
		</h2>
		<div class="faq_answer">
			<%= sanitize @faq["magazines"] %>
		</div>
	</div>
</div>
<!-- Following main zone -->
<div id="main_content">
	<div id="full_name">
		<%= h @spec.full_name.or_else("Su nombre") %>
	</div>
	<div id="occupation">
		<%= h @spec.occupation.or_else("Su ocupación") %>
	</div>
	<div id="location">
		<%= h @spec.location.or_else("Su localización") %>
	</div>
	<span class="edit_link"> <%= link_to "(Editar)", :controller => "spec", :action => "edit" %> </span>
	<hr noshade />
	Perfil URL: <%= link_to profile_for(@user), profile_for(@user) %>
	<hr noshade />
	Mi Biografía: <span class="edit_link"> <%= link_to "(Editar)", :controller => "faq", :action => "edit" %> </span>
	<div id="bio" class="faq_answer">
		<%= sanitize @faq.bio %>
	</div>
	<hr noshade />
	Amigos
	<%= render :partial => "friendship/friends" %>
	Blog: <span class="edit_link"> <%= link_to "(Administrar)", blog_posts_path(@blog) %> </span>
	<%= render :partial => "profile/blog" %>
</div>